]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Disable left/right workspace switching in the overview
authorOwen W. Taylor <otaylor@fishsoup.net>
Wed, 9 Feb 2011 16:43:58 +0000 (11:43 -0500)
committerOwen W. Taylor <otaylor@fishsoup.net>
Wed, 9 Feb 2011 19:08:41 +0000 (14:08 -0500)
Make the overview match the main view so only up/down can be used
to switch workspaces (matching the visuals), and not left/right
as well.

https://bugzilla.gnome.org/show_bug.cgi?id=641887

js/ui/main.js

index d9569cb2ae4b7407afb765f7c940ae80545bf832..8f2c1e9c629b84b2ff0c17ab4e3bb8f689e9222b 100644 (file)
@@ -446,12 +446,15 @@ function _globalKeyPressHandler(actor, event) {
     }
 
     switch (action) {
-        case Meta.KeyBindingAction.WORKSPACE_LEFT:
-            wm.actionMoveWorkspaceLeft();
-            return true;
-        case Meta.KeyBindingAction.WORKSPACE_RIGHT:
-            wm.actionMoveWorkspaceRight();
-            return true;
+        // left/right would effectively act as synonyms for up/down if we enabled them;
+        // but that could be considered confusing; we also disable them in the main view.
+        //
+        // case Meta.KeyBindingAction.WORKSPACE_LEFT:
+        //     wm.actionMoveWorkspaceLeft();
+        //     return true;
+        // case Meta.KeyBindingAction.WORKSPACE_RIGHT:
+        //     wm.actionMoveWorkspaceRight();
+        //     return true;
         case Meta.KeyBindingAction.WORKSPACE_UP:
             wm.actionMoveWorkspaceUp();
             return true;